﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:Notes"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="Notes.RecoverPasswordPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    xmlns:toolbox="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=Strings.RecoverPassword, Source={StaticResource LocalizedStrings }}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle2Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer >

                <StackPanel x:Name="StackPanel">
                    <TextBlock  Name="Username_Text" Text="{Binding Path=Strings.Username, Source={StaticResource LocalizedStrings }}" FontSize="22" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                    <TextBox Name="Username_Area" FontSize="30"  TextAlignment="Center" KeyDown="Username_Area_KeyDown" >
                        <TextBox.InputScope>
                            <InputScope>
                                <InputScopeName NameValue="EmailUserName"/>
                            </InputScope>
                        </TextBox.InputScope>
                    </TextBox>
                    <toolbox:PerformanceProgressBar Name="ToggleProgressBar" Height="20" IsIndeterminate="False" IsEnabled="False" Visibility="Collapsed" />
                    <Button Name="CheckUserPassword_Button" Content="{Binding Path=Strings.RecoverPassword, Source={StaticResource LocalizedStrings }}" Click="CheckUserPassword_Button_Click"/>


                    <TextBlock  Name="RemainingTime_Label" Text="" FontSize="22" Height="50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed" TextAlignment="Center"/>

                    <Button Name="CancelUpdate_Button" Content="{Binding Path=Strings.Cancel, Source={StaticResource LocalizedStrings }}" Click="CancelUpdate_Button_Click" Visibility="Collapsed" />

                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>
 </phone:PhoneApplicationPage>
